package com.du.spring5.bean;

/**
 * @author : DuJiabao
 * @Date : 2021/2/3 20:42
 * @Project : spring
 * @File : null.java
 * @Desc :
 */
public class Person {
    private String name;

    public Person() {
        System.out.println("Constructor");
    }

    public void initMethod(){
        System.out.println("initMethod");
    }

    public void destroyMethod(){
        System.out.println("destroyMethod");
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("set");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                '}';
    }
}
